import Cookies from "js-cookie"

export const ACCESS_TOKEN = 'access_token';
export const REFRESH_TOKEN = 'refresh_token';

// export function getToken () {
//   return localStorage.getItem(TokenKey);
// }
export function getRefreshToken() {
	return Cookies.get(REFRESH_TOKEN);
}
export function getAccessToken() {
	return Cookies.get(ACCESS_TOKEN);
}

export function setToken(key, token) {
	return Cookies.set(key, token);
}

export function removeToken(key) {
	return Cookies.remove(key);
}
